<?php

namespace RSP\UserBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * UserEcole
 *
 * @ORM\Table()
 * @ORM\Entity
 */
class UserEcole
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="date_debut", type="date")
     */
    private $date_debut;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="date_fin", type="date")
     */
    private $date_fin;
/**
   * @ORM\ManyToOne(targetEntity="RSP\UserBundle\Entity\ecole", cascade={"persist"})
   */
  private $ecole;
  /**
   * @ORM\ManyToOne(targetEntity="RSP\UserBundle\Entity\User",inversedBy="usersecoles")
   */
  private $user;

    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set date_debut
     *
     * @param \DateTime $dateDebut
     * @return UserEcole
     */
    public function setDateDebut($dateDebut)
    {
        $this->date_debut = $dateDebut;
    
        return $this;
    }

    /**
     * Get date_debut
     *
     * @return \DateTime 
     */
    public function getDateDebut()
    {
        return $this->date_debut;
    }

    /**
     * Set date_fin
     *
     * @param \DateTime $dateFin
     * @return UserEcole
     */
    public function setDateFin($dateFin)
    {
        $this->date_fin = $dateFin;
    
        return $this;
    }

    /**
     * Get date_fin
     *
     * @return \DateTime 
     */
    public function getDateFin()
    {
        return $this->date_fin;
    }

    /**
     * Set ecole
     *
     * @param \RSP\UserBundle\Entity\ecole $ecole
     * @return UserEcole
     */
    public function setEcole(\RSP\UserBundle\Entity\ecole $ecole = null)
    {
        $this->ecole = $ecole;
    
        return $this;
    }

    /**
     * Get ecole
     *
     * @return \RSP\UserBundle\Entity\ecole 
     */
    public function getEcole()
    {
        return $this->ecole;
    }

    /**
     * Set user
     *
     * @param \RSP\UserBundle\Entity\User $user
     * @return UserEcole
     */
    public function setUser(\RSP\UserBundle\Entity\User $user = null)
    {
        $this->user = $user;
    
        return $this;
    }

    /**
     * Get user
     *
     * @return \RSP\UserBundle\Entity\User 
     */
    public function getUser()
    {
        return $this->user;
    }
}